package tests;

public class Test implements Runnable {


        public void run() {
            System.out.println("thread test is finish");
        }

        public static void main(String args[]) {
            Thread test = new Thread(new Test());
            test.start();

            try {
                //Thread.sleep(100);
                test.join();
            } catch (InterruptedException e) {
                System.out.println("Interrupted tread MAIN");
            }

            System.out.println("Main tread is finish");
        }


}
